package net.xdclass.order.feign;

import io.swagger.annotations.ApiParam;
import net.xdclass.common.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "xdclass-user-service")
public interface UserFeignClient {

    /**
     * 根据id查询收货地址
     * @param id
     * @return
     */
    @GetMapping("/api/address/v1/detail/{id}")
    JsonData detail(@PathVariable("id") Long id);
}
